From: Adel Gadllah Date: Sun, 11 Jan 2015 14:42:18 +0000 (+0100) Subject: recorder: Don't compute the buffer size twice X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1907 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=985e909876a8ac02a139d07c9190e3a1ff589eef;p=gnome-shell.git recorder: Don't compute the buffer size twice --- diff --git a/src/shell-recorder.c b/src/shell-recorder.c index ba1e546e4..3ff3d3dc4 100644 --- a/src/shell-recorder.c +++ b/src/shell-recorder.c @@ -437,7 +437,7 @@ recorder_record_frame (ShellRecorder *recorder) size = recorder->area.width * recorder->area.height * 4; - data = g_malloc (recorder->area.width * 4 * recorder->area.height); + data = g_malloc (size); cogl_framebuffer_read_pixels (cogl_get_draw_framebuffer (), recorder->area.x, recorder->area.y,